package com.yang.springcloud.service;

import com.yang.springcloud.dao.MemberImp;
import com.yang.springcloud.pojo.Member;
import com.yang.springcloud.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MemberServiceImp implements MemberService{

    @Autowired
    private MemberImp mi;

    @Autowired
    private com.yang.springcloud.feignService.MemberService fms;

    @Override
    public Map<String, Object> insertMemberInfo(List<Member> m) {
        return mi.insertMemberInfo(m);
    }

    @Override
    public List<Member> queryMemberAll() {
        return mi.queryMemberAll();
    }

    @Override
    public Student queryById(String passid) {
        System.out.println("7072 service 执行了");
        return fms.queryById(passid);
    }
}
